<?php


namespace support\service;


interface MqClient
{
    /**
     * 异步投递
     * @param $queue
     * @param $data
     * @param int $delay
     */
    public function asyncSend($queue, $data, $delay = 0): void;
    /**
     * 同步投递
     * @param $queue
     * @param $data
     * @param int $delay
     */
    public function send($queue, $data, $delay = 0): void;

}